package springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import springboot.bean.GetFinish_Request;
import springboot.bean.MoveFinish_Request;
import springboot.bean.Response;

@Controller
@RequestMapping(value = "/AGV")
public class StackController {
    @RequestMapping(value = "/Ord_GetFinish",method = RequestMethod.POST)
    @ResponseBody
    public Response returnByData(@RequestBody GetFinish_Request getFinish_request){
        Response response=new Response();
        response.setuUID(getFinish_request.getuUID());
        response.setRequestAPI(getFinish_request.getRequestAPI());
        response.setCode(0);
        response.setMessage("OK");
        return response;
    }

    @RequestMapping(value = "/Ord_MoveFinish",method = RequestMethod.POST)
    @ResponseBody
    public Response returnByData(@RequestBody MoveFinish_Request moveFinish_request){
        Response response=new Response();
        response.setuUID(moveFinish_request.getuUID());
        response.setRequestAPI(moveFinish_request.getRequestAPI());
        response.setCode(0);
        response.setMessage("OK");
        return response;
    }
}
